package com.changli07.object.tostring;

public class GeometricObject {
    String color ;
    double weight;
    GeometricObject(){

    }
    GeometricObject(String color, double weight) {
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    public double findArea(){
        return weight * weight;
    }
}
